package org.byqh.dqeai.entity;

import com.easy.query.core.annotation.Column;
import com.easy.query.core.annotation.EntityFileProxy;
import com.easy.query.core.annotation.Table;
import com.easy.query.core.proxy.ProxyEntityAvailable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.byqh.dqeai.entity.proxy.SysOpLogProxy;

import java.time.LocalDateTime;

/**
 * 实体类。
 *
 * @author easy-query-plugin automatic generation
 * @since 1.0
 */
@Data
@Schema(name = "SysOpLog", description = "$table.comment")
@Table(value = "SYS_OP_LOG")
@EntityFileProxy
public class SysOpLog implements ProxyEntityAvailable<SysOpLog, SysOpLogProxy> {

    /**
     * 日志ID
     */
    @Schema(description = "日志ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @Column(primaryKey = true, value = "LOG_ID")
    private String logId;

    /**
     * 用户帐号
     */
    @Schema(description = "用户帐号", requiredMode = Schema.RequiredMode.REQUIRED)
    @Column(value = "USER_CODE")
    private String userCode;

    /**
     * 操作时间
     */
    @Schema(description = "操作时间", example = "yyyy-MM-dd HH:mm:ss")
    @Column(value = "OP_TIME")
    private LocalDateTime opTime;

    /**
     * 操作模块分类ID
     */
    @Schema(description = "操作模块分类ID")
    @Column(value = "OP_CATEGORY")
    private String opCategory;

    /**
     * 操作模块ID
     */
    @Schema(description = "操作模块ID")
    @Column(value = "OP_MODULE")
    private String opModule;

    /**
     * 操作模块描述
     */
    @Schema(description = "操作模块描述")
    @Column(value = "OP_DES")
    private String opDes;

    /**
     * 应用ID
     */
    @Schema(description = "应用ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @Column(value = "APP_ID")
    private String appId;

    /**
     * 用户IP地址
     */
    @Schema(description = "用户IP地址")
    @Column(value = "USER_IP")
    private String userIp;

    /**
     * 备注信息
     */
    @Schema(description = "备注信息")
    @Column(value = "REMARKS")
    private String remarks;

    @Column(value = "USER_NAME")
    private String userName;

    @Column(value = "USER_DEPT")
    private String userDept;
}
